<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;

use Illuminate\Database\Eloquent\Model;

class AdPrice extends Model
{
	use HasDateTimeFormatter;
    protected $table = 'ad_prices';

    public function category()
    {
        return $this->belongsTo(AdCategory::class,'ad_category_id');
    }

    public function hierarchy()
    {
        return $this->belongsTo(AdHierarchy::class,'ad_hierarchy_id');
    }
}
